<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditSalarioEJBTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditSalarioEJBLabel_SCodigo}" for="SCodigo" />
                    <h:inputText id="SCodigo" value="#{salarioEJBController.selected.SCodigo}" title="#{bundle.EditSalarioEJBTitle_SCodigo}" required="true" requiredMessage="#{bundle.EditSalarioEJBRequiredMessage_SCodigo}"/>
                    <h:outputLabel value="#{bundle.EditSalarioEJBLabel_SValorBase}" for="SValorBase" />
                    <h:inputText id="SValorBase" value="#{salarioEJBController.selected.SValorBase}" title="#{bundle.EditSalarioEJBTitle_SValorBase}" required="true" requiredMessage="#{bundle.EditSalarioEJBRequiredMessage_SValorBase}"/>
                    <h:outputLabel value="#{bundle.EditSalarioEJBLabel_SPrestaciones}" for="SPrestaciones" />
                    <h:inputText id="SPrestaciones" value="#{salarioEJBController.selected.SPrestaciones}" title="#{bundle.EditSalarioEJBTitle_SPrestaciones}" required="true" requiredMessage="#{bundle.EditSalarioEJBRequiredMessage_SPrestaciones}"/>
                    <h:outputLabel value="#{bundle.EditSalarioEJBLabel_SSalud}" for="SSalud" />
                    <h:inputText id="SSalud" value="#{salarioEJBController.selected.SSalud}" title="#{bundle.EditSalarioEJBTitle_SSalud}" required="true" requiredMessage="#{bundle.EditSalarioEJBRequiredMessage_SSalud}"/>
                    <h:outputLabel value="#{bundle.EditSalarioEJBLabel_SPension}" for="SPension" />
                    <h:inputText id="SPension" value="#{salarioEJBController.selected.SPension}" title="#{bundle.EditSalarioEJBTitle_SPension}" required="true" requiredMessage="#{bundle.EditSalarioEJBRequiredMessage_SPension}"/>
                    <h:outputLabel value="#{bundle.EditSalarioEJBLabel_STotal}" for="STotal" />
                    <h:inputText id="STotal" value="#{salarioEJBController.selected.STotal}" title="#{bundle.EditSalarioEJBTitle_STotal}" required="true" requiredMessage="#{bundle.EditSalarioEJBRequiredMessage_STotal}"/>
                    <h:outputLabel value="#{bundle.EditSalarioEJBLabel_jefedeProgramaJCodigo}" for="jefedeProgramaJCodigo" />
                    <h:selectOneMenu id="jefedeProgramaJCodigo" value="#{salarioEJBController.selected.jefedeProgramaJCodigo}" title="#{bundle.EditSalarioEJBTitle_jefedeProgramaJCodigo}" >
                        <f:selectItems value="#{jefeDeProgramaEJBController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditSalarioEJBLabel_docenteDTarjetaProfesional}" for="docenteDTarjetaProfesional" />
                    <h:selectOneMenu id="docenteDTarjetaProfesional" value="#{salarioEJBController.selected.docenteDTarjetaProfesional}" title="#{bundle.EditSalarioEJBTitle_docenteDTarjetaProfesional}" >
                        <f:selectItems value="#{docenteEJBController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{salarioEJBController.update}" value="#{bundle.EditSalarioEJBSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditSalarioEJBViewLink}"/>
                <br />
                <h:commandLink action="#{salarioEJBController.prepareList}" value="#{bundle.EditSalarioEJBShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.EditSalarioEJBIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
